package com.winter.Controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.winter.model.FinFavInfo;
import com.winter.service.FinFavInfoService;
import com.winter.util.Result;

@RestController
@RequestMapping("v1/finFavInfo")
public class FinFavInfoController {


    @Resource
    private FinFavInfoService finFavInfoService;

    /**
     * 新增资金报价收藏
     */
    @PostMapping("/insertFinFavInfo")
    public Result insertFinFavInfo(@RequestBody FinFavInfo finFavInfo) {
        return finFavInfoService.insertFinFavInfo(finFavInfo);
    }

    @DeleteMapping("/deleteFinFavInfo")
    public Result deleteFinFavInfo(String relaId, String relaType, String relaChildType, String userNo) {
        return finFavInfoService.deleteFinFavInfo(relaId,relaType,relaChildType,userNo);
    }
}
